package com.cmict.data.form.api.dal.dataobject.info;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 字段信息 DO
 *
 * @author 系统管理员
 */
@TableName("t_md_columns")
@KeySequence("t_md_columns_seq")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MdColumnsDO {

    /**
     * 自增id
     */
    @TableId(type = IdType.INPUT)
    private String id;
    /**
     * 表id
     */
    private String tableId;
    /**
     * 字段名
     */
    private String columnName;
    /**
     * 字段位置
     */
    private Long ordinalPosition;
    /**
     * 字段内容是否为空
     */
    private String isNullable;
    /**
     * numeric_presision
     */
    private Long numericPrecision;
    /**
     * numeric_scale
     */
    private Long numericScale;
    /**
     * datetime_precision
     */
    private Long datetimePrecision;
    /**
     * character_set_name
     */
    private String characterSetName;
    /**
     * 字段类型
     */
    private String columnType;
    /**
     * column_key
     */
    private String columnKey;
    /**
     * 字段注释
     */
    private String columnComment;
    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;
    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;
    /**
     * 是否删除,1删除，0未删除
     */
    private Integer isDeleted;
    /**
     * qualifield_name
     */
    private String qualifieldName;
    /**
     * prefix_name
     */
    private String prefixName;

}
